package com.campusbackend.entity.vo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * 教师注册请求数据对象
 */
@Getter
@Setter
@ToString
@Data
public class TeacherRegisterVO {
    
    @NotBlank(message = "工号不能为空")
    @Pattern(regexp = "^\\S{1,50}$", message = "工号长度必须在1-50个字符之间，且不能包含空格")
    private String employee_id;
    
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^\\S{6,255}$", message = "密码长度必须在6-255个字符之间，且不能包含空格")
    private String password;
    
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;
    
    @NotBlank(message = "真实姓名不能为空")
    @Pattern(regexp = "^\\S{1,50}$", message = "姓名长度必须在1-50个字符之间")
    private String real_name;
    
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确的手机号格式")
    private String phone;
    
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "请输入正确的邮箱格式")
    private String email;
    
    @NotBlank(message = "专业职位不能为空")
    @Pattern(regexp = "^\\S{1,100}$", message = "专业职位长度必须在1-100个字符之间")
    private String professional_title;
    
    @NotBlank(message = "身份证号不能为空")
    @Pattern(regexp = "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$", 
             message = "请输入正确的身份证号格式")
    private String id_card;
} 